package com.springIOC.Advice;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * Created by 41579 on 2016/11/2.
 */
public class MyAopAdvice implements MethodBeforeAdvice,AfterReturningAdvice{
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("MyAopAdvicer1 before.....");
    }

    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("MyAopAdvicer1 after.....");
    }
}
